#ifndef ADDFACE_H
#define ADDFACE_H

#include <QWidget>
#include <opencv2\opencv.hpp>
#include <config.h>
#include <register.h>

namespace Ui {
class AddFace;
}

class AddFace : public QWidget
{
    Q_OBJECT

public:
    explicit AddFace(QWidget *parent = nullptr);
    ~AddFace();
    Register *pRegister = NULL;

signals:
    void back();

    void compare();

private slots:
    void on_begin_clicked();

    void on_stop_clicked();

    void compare_face();

    void add_face(QString name, QString id, QString department, QString gender, QString age);

    void on_back_clicked();

private:
    Ui::AddFace *ui;
    bool stop = false;
};

#endif // ADDFACE_H
